package com.andy.myFramework.mvc;

import com.andy.myFramework.ioc.BeanFactory;
import com.andy.myFramework.mvc.pojo.Handler;

import java.util.Map;

public interface HandlerFactory {

    /**
     * 获取一个handler
     * @param url
     * @return
     */
    public Handler getHandle(String url);

    /**
     * 初始化handler容器
     * @param singletons ioc单例池
     */
    public void initHandlerFactory(Map<String,Object> singletons);


}
